<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<!--    如果不能互联网，就下载好文件再用，或者使用polyfill私服。-->
<!--    <script type="application/javascript" src="../../js/polyfill.min.js"></script>-->
<!--    在线方式。-->
    <script type="application/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
    <title>Title</title>
</head>
<body>
<script type="application/javascript">
    new Promise(function (resolve, reject){
        resolve(1);
    }).then(function (v){
        console.log(v);
    }).catch(function (reason){
        console.log(reason)
    }).finally(function (){
        console.log("finally");
    })
</script>
</body>
</html>